package cn.kgc.easybuy.service;

import cn.kgc.easybuy.pojo.Order;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface OrderService {
    boolean delOrder(Integer id);
    boolean updateOrder(Order order);
    boolean addOrder(Order order);
    Order selectOrderById(Integer id);
    Order selectOrderBySerialNumber(String serialNumber);
    PageInfo<Order> selectOrderByPage(Map<String,Object> params);
    boolean sellOrder(Order order);
    boolean refundOrder(Order order);
    boolean cancelOrder(Integer id);
}
